package com.woniu.woniuproject.mapper;

import com.woniu.woniuproject.entity.Info;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

@Repository
public interface InfoMapper {
    @Insert("insert into info values(null,#{id},#{name})")
    int insert( @Param("id") int id,@Param("name") String name);

    @Select("select * from info where bandId=#{labelid}")
    Info selectById(int labelid);
}
